#
# Makefile for the lombo watchdog drivers.
#

obj-y += lombo_wdt.o

ifeq ($(CONFIG_ARCH_LOMBO_N7V1), y)
WDT_CSP_PLATFORM := v1
else
WDT_CSP_PLATFORM := v2
endif

SOURCE := $(srctree)/$(src)/csp/$(WDT_CSP_PLATFORM)/wdt_operate.c

ifneq ($(wildcard $(SOURCE)), )
obj-y += csp/$(WDT_CSP_PLATFORM)/
else
obj-y += liblombo_wdt.o
$(obj)/liblombo_wdt.o: $(src)/csp/$(WDT_CSP_PLATFORM)/liblombo_wdt
	cp $< $@
endif
